﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Xml;
using System.Xml.Serialization;
using WPFMediaKit.DirectShow.Controls;
using VideoReflector.Models;

namespace VideoReflector.Views
{
	/// <summary>
	/// Interaction logic for Settings.xaml
	/// </summary>
	public partial class Settings : UserControl
	{
		public Settings()
		{
			// Required to initialize variables
			this.InitializeComponent();
		}

        private void AddGroupButton_Click(object sender, RoutedEventArgs e)
        {
            var tagGroup = new ClipTagGroup();
            tagGroup.ID = ((IList)DefaultGroupsField.ItemsSource).Count;
            ((IList)DefaultGroupsField.ItemsSource).Add(tagGroup);
        }

        private void RemoveGroupButton_Click(object sender, RoutedEventArgs e)
        {
            ((IList)DefaultGroupsField.ItemsSource).Remove(DefaultGroupsField.SelectedItem);
        }

        private void DefaultGroupsField_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e)
        {

        }
	}
}